package com.ssy.lingxi.marketing.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 秒杀 - BO
 * @author fhj
 * @date 2021/06/17
 * @version 2.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "12",description = "秒杀")
public class SecKillBO extends ActivityDefinedBO{

    private static final long serialVersionUID = -7160684810589813110L;
    /**
     * 每日秒杀开始时间
     * */
    @NotNull(message = "每日秒杀开始时间不能为空")
    @ApiModelProperty(dataType ="integer",value = "每日秒杀开始时间")
    private Long startTime;

    /**
     * 每日秒杀结束时间
     * */
    @NotNull(message = "每日秒杀结束时间不能为空")
    @ApiModelProperty(dataType ="integer",value = "每日秒杀结束时间")
    private Long endTime;

    /**
     * 是否允许叠加优惠劵
     * */
    @NotNull(message = "是否允许叠加优惠劵不能为空")
    @ApiModelProperty(dataType ="boolean",value = "是否允许叠加优惠劵")
    private Boolean allowCoupon;

    /**
     * 超限规则：1-原价购买 2-不可购买
     * */
    @ApiModelProperty(dataType ="integer",value = "超限规则：1-原价购买 2-不可购买")
    private Integer exceedRule;

    /**
     * 活动描述
     * */
    @ApiModelProperty(dataType ="string",value = "活动描述")
    private String describe;

}